package com.example.administrator.szb.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import com.example.administrator.szb.R;

import com.example.administrator.szb.activity.base.BaseActivity;
import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.example.administrator.szb.config.FragmentsFlag;
import com.example.administrator.szb.tinkerutil.SampleApplicationLike;

/**
 * Created by D N on 2017/9/15.
 */

public class MingPianSuccessActivity extends BaseActivity {
    @Bind(R.id.button2)
    Button button2;
    @Bind(R.id.button3)
    Button button3;
    @Bind(R.id.mingpian_success_bsfh)
    ImageView mingpianSuccessBsfh;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.mingpian_success_activity);
        ButterKnife.bind(this);
        SampleApplicationLike.getActivitiesInstance().add(this);
        SampleApplicationLike.getUserloginInstance().setStatus(2);//修改用户状态
    }

    @OnClick({R.id.button2, R.id.button3,R.id.mingpian_success_bsfh})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.button2:
                Intent resultIntent = new Intent(this,HomeActivity.class);
                resultIntent.putExtra("CODE",FragmentsFlag.Activity_MingPianSuccess.ordinal());
                startActivity(resultIntent);
                break;
            case R.id.button3:
                startActivity(new Intent(this, IdCardRzActivity.class));
                break;
            case R.id.mingpian_success_bsfh:
                finish();
                break;
        }
    }

}
